package com.weipeep.common.controller;

import com.weipeep.common.base.BaseController;
import com.weipeep.common.domain.NotifyMessage;
import com.weipeep.common.domain.WiselyMessage;
import com.weipeep.common.domain.WiselyResponse;
import com.weipeep.common.utils.Result;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/oa/notify")
public class OaController extends BaseController {
    @GetMapping("/message")
    @ResponseBody
    public Result<NotifyMessage> notifyMessage(){
        Long userId = getUserId();
        NotifyMessage notifyMessage = new NotifyMessage();
        notifyMessage.setRows(100);
        notifyMessage.setTotal(200);
        return Result.ok(notifyMessage);
    }

}
